<template>
  <div>
    <Header />
    <!-- <p>App...</p> -->
    <router-view></router-view>
     
      <!-- 
          方式一： 可以根据$route 当前路径参数判断是否需要显示组件   $route.path  获取当前的路由路径
          v-if:" this.$route.path ！== '/login && this.$route.path !== '/Register' "
       -->
    <Footer v-if="!this.$route.meta.isshowFooter" />
  </div>
</template>

<script>
import Header from "./components/Header/index.vue";
import Footer from "./components/Footer/index.vue";
export default {
  name: "App",
  components: {
    Header,
    Footer,
  },
};
</script>

<style></style>
